home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / source / snip9503 / lls_str.h < prev    next >
C/C++ Source or Header  |  1995-03-14  |  1KB  |  38 lines

  1. /* =======================================================================
  2.     LLS_STR.h       Generic Singly Linked List for Strings.
  3.  
  4.                     v1.00  94-08-11
  5.  
  6.                     - Based on the LLS_BLOB module for variable size data-
  7.                       items. Use the functions in the LLS module for
  8.                       operations not specific to Strings.
  9.                     - Refer to LLS_BLOB.h for comments.
  10.                     - Note that ALL functions of LLS_BLOB are redefined
  11.                       for consistency reasons.
  12.  
  13.                     This module has no associated .C files.
  14.  
  15.  _____              This version is Public Domain.
  16.  /_|__|             A.Reitsma, Delft, The Netherlands.
  17. /  | \  --------------------------------------------------------------- */
  18.  
  19. #include <string.h>
  20. #include "lls_blob.h"
  21.  
  22. #define LLSstringCreate()       LLSblobCreate()
  23.  
  24. #define LLSstringInsert(l,s)    LLSblobInsert( l, s, strlen( s ) +1 )
  25.  
  26. #define LLSstringAdd(l,s)       LLSblobAdd( l, s, strlen( s ) +1 )
  27.  
  28. #define LLSstringPrepend(l,s)   LLSblobPrepend( l, s, strlen( s ) +1 )
  29.  
  30. #define LLSstringAppend(l,s)    LLSblobAppend( l, s, strlen( s ) +1 )
  31.  
  32. #define LLSstringDelete(l)      LLSblobDelete( l )
  33.  
  34. #define LLSstringData(l,d)      LLSblobData( l, d )
  35.                                 /* returns strlen() +1 !!! */
  36.  
  37. /* ==== LLS_STR.h  end ================================================ */
  38.